package paas.storage.exception;

import paas.storage.common.constant.ResponseCode;

/**
 * 自定义异常
 *
 * @author xufeng
 */
public class RRException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    private int errorCode;
    private String errorMsg;



    public RRException(String errorMsg) {
        super(errorMsg);
        this.errorCode= ResponseCode.BUSINESS_CODE;
        this.errorMsg = errorMsg;
    }


    public RRException(int errorCode,String errorMsg) {
        super(errorMsg);
        this.errorCode= errorCode;
        this.errorMsg = errorMsg;
    }


    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }


}
